@import "mixin";
@import "common";

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: $themBlue;
  color: #fff;
  border-bottom: 1px solid #d8d8d8;
  .wrap {
    position: relative;
  }
  $height: 40px;
  @mixin _height {
    height: $height;
    line-height: $height;
    text-align: center;
  }

  .b {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    font-size: 22px;
    @include _height;
    &:active .b-i {
      font-size: 26px;
    }
    .b-i {
      font-size: 22px;
      font-weight: 700;
    }
  }

  .r {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    font-size: 22px;
    @include _height;
    &:active .b-i {
      font-size: 26px;
    }
    .b-i {
      font-size: 22px;
      font-weight: 700;
    }
  }
  .con {
    font-size: 15px;
  }

  .t {
    margin: 0 88px;
    position: relative;
    width: auto;
    font-weight: 400;
    font-size: 16px;
    @include wordHidden;
    @include _height;
  }
}

.loading-wrap {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  z-index: 99;
  text-align: center;
  @include flex-display;
  @include flex-align-center;
  @include flex-pack-center;
  .loading {
    width: 100%;
    height: 60px;
    @include flex-display;
    @include flex-align-center;
    @include flex-pack-center;
    font-size: 12px;
  }
  .mui-progressbar {
    height: 3px;
  }
  .nodata-icon {
    display: inline-block;
    padding: 16px 0;
    font-size: 38px;
    color: $font-color-gray;
  }
  .nodata-txt{
    font-size:14px;
  }
}

.loadingFull{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 998;
  @include flex-display;
  @include flex-align-center;
  @include flex-pack-center;
  .loading{
    font-size:13px;
    @include flex-display;
    @include flex-align-center;
    @include flex-pack-center;
    .mui-spinner-custom{
      font-size:18px;
    }
  }

}

.search-wrap {
  position: relative;
  background-color: #dfdfdf;
  height: 40px;
  box-sizing: border-box;
  padding: 6px;
  .search-m {
    position: relative;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    border-radius: 13px;
    @include flex-display;
    @include flex-align-center;
    font-size: 14px;
    border: 1px solid #d8d8d8;
    overflow: hidden;
    background-color: #fff;
    .s-input {
      width: 100%;
      height: 100%;
      border: none;
      background-color: #fff;
    }
    .icon-fangdajing {
      font-size: 18px;
      color: #949494;
      margin: 0 6px;
    }
  }
}

.contacts-wrap {
  .firstLetter {
    padding-left: 10px;
    color: #545454 !important;
  }
}
.contacts-ul {
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  background-color: #fff;
  $mh: 32px;
  .contacts-li {
    position: relative;
    height: 44px;
    @include flex-display;
    @include flex-align-center;
    @include bord_bottom(12px, 1);
    @include clickActive;
    .img-h {
      height: $mh;
      width: $mh;
      margin-left: 12px;
      margin-right: 6px;
      //border-radius: 16px;
      border-radius: 4px;
      overflow: hidden;
    }
    .checkInput {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      z-index: 11;
    }
    .txtWrap {
      font-size: 14px;
      height: 100%;
      width: 100%;
      @include flex-size(1);
      @include flex-display;
      @include flex-align-center;
      .name {
        @include flex-size(1);
        @include wordHidden;
      }
      .checkIcon {
        position: relative;
        height: 44px;
        line-height: 44px;
        padding-right: 12px;
        &:before {
          @include iconCode("\e603");
          font-size: 20px;
          color: #cccccc;
        }
      }
    }
    .checkInput:checked + .txtWrap .name {
      color: #00c893;
    }
    .checkInput:checked + .txtWrap .checkIcon {
      &:before {
        @include iconCode("\e629");
        font-size: 24px;
        color: #32c832;
      }
    }
  }
}

.btn-wrap {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 16px;
  @mixin btn($bc,$bac) {
    border-radius: 2px;
    width: 100%;
    height: 36px;
    line-height: 36px;
    font-size: 16px;
    text-align: center;
    margin: 12px auto;
    color: #fff;
    background-color: $bc;
    border: 1px solid $bac;
    transition: background-color .2s ease;
    &:active {
      border: 1px solid $bc;
      background-color: $bac;
      color: #d8d8d8;
    }
  }
  .btn-b {
    @include btn($themBlue, #0d85ea);
  }
  .btn-g {
    @include btn(#dd524d, #ff6d50);
  }
}

.switch-contacts-wrap {
  width: 100%;
  height: 44px;
  background-color: #f1f1f3;
  @include flex-display;
  @include flex-align-center;
  @include flex-pack-center;
  .switcher-wrap {
    position: relative;
    width: 60%;
    height: 70%;
    border: 1px solid #2299f8;
    border-radius: 6px;
    color: $themBlue;
    overflow: hidden;
    @mixin contacts-btn {
      cursor: pointer;
      position: absolute;
      top: 0;
      height: 100%;
      width: 50%;
      text-align: center;
      @include flex-display;
      @include flex-align-center;
      @include flex-pack-center;
    }
    .switch-to-contacts {
      left: 0;
      border-top-left-radius: 6px;
      border-bottom-left-radius: 6px;
      @include contacts-btn;
    }
    .switch-to-structure {
      right: 0;
      border-top-right-radius: 6px;
      border-bottom-right-radius: 6px;
      @include contacts-btn;
    }

    .contacts-btn-active {
      background-color: $themBlue;
      color: #fff;
    }
  }
}